﻿<%@ Page Language="VB" MasterPageFile="~/MainLayout.master" AutoEventWireup="false" CodeFile="Auction.aspx.vb" Inherits="UploadSearch" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script type="text/javascript" src="scripts/overlib.js"></script>
    <asp:Label ID="lblStaffUID" runat="server" Visible="false" />
    <asp:Label ID="lblStaffType" runat="server" Visible="false" />
    <div>
        <h1>Auction Search</h1>
    </div>



    <div runat="server" id="divError" class="msg-box-error" visible="false" enableviewstate="false">

        <span class="title">Error</span><br />
        <asp:Label ID="lblMsgError" runat="server" Text="ERROR" />
    </div>
    <div runat="server" id="divSuccessful" class="msg-box-success" visible="false" enableviewstate="false">

        <span class="title">Successful</span><br />
        <asp:Label ID="lblMsgSuccessful" runat="server" Text="Success" />

    </div>

    <p><%--Description of the page--%></p>

    <!--Slide Out Adv Search Here-->
    <asp:Panel ID="pnlFilter" runat="server">


        <table class="SearchFilter" width="100%" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="30">&nbsp;</td>
                    <td width="120">Unit Number</td>
                    <td width="250">
                        <asp:TextBox ID="txtUnitNo" runat="server" Width="300px" /></td>
                    <td width="30">&nbsp;</td>
                    <td width="120">Address</td>
                    <td width="250">
                        <asp:TextBox ID="txtAddress" runat="server" Width="300px" />
                    </td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>Lelong Tip Code</td>
                    <td>
                        <asp:TextBox ID="txtLelongTipCode" runat="server" Width="300px" /></td>
                    <td>&nbsp;</td>
                    <td>Property Type</td>
                    <td>
                        <asp:DropDownList ID="ddlType" runat="server" Width="300px">
                            <asp:ListItem Text="-SELECT-" Value="" Selected="True" />
                            <asp:ListItem Text="Others" Value="1" />
                            <asp:ListItem Text="Apartment/Condo" Value="2" />
                            <asp:ListItem Text="House" Value="3" />
                            <asp:ListItem Text="Flat" Value="4" />
                            <asp:ListItem Text="Factory" Value="5" />
                            <asp:ListItem Text="Shop/Office" Value="6" />
                            <asp:ListItem Text="Land" Value="7" />
                        </asp:DropDownList>
                    </td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>Auction Venue</td>
                    <td>
                        <asp:TextBox ID="txtAuctionVenue" runat="server" Width="300px" /></td>
                    <td>&nbsp;</td>
                    <td>Auction Bank</td>
                    <td>
                        <asp:DropDownList ID="ddlBank" runat="server" Width="300px">
                            <asp:ListItem Text="-SELECT-" Value="" Selected="True" />
                            <asp:ListItem Text="Maybank" Value="1" />
                            <asp:ListItem Text="Public" Value="2" />
                            <asp:ListItem Text="CIMB" Value="3" />
                            <asp:ListItem Text="Hong Leong" Value="4" />
                            <asp:ListItem Text="AmBank" Value="5" />
                            <asp:ListItem Text="Bank Rakyat" Value="6" />
                            <asp:ListItem Text="MBSB" Value="7" />
                            <asp:ListItem Text="Citibank" Value="8" />
                            <asp:ListItem Text="OCBC" Value="9" />
                            <asp:ListItem Text="HSBC" Value="10" />
                            <asp:ListItem Text="Alliance Bank" Value="11" />
                            <asp:ListItem Text="Standard Chartered" Value="12" />
                            <asp:ListItem Text="Bank Islam" Value="13" />
                            <asp:ListItem Text="RHB" Value="14" />
                            <asp:ListItem Text="UOB" Value="15" />
                            <asp:ListItem Text="Bank Islam" Value="16" />
                            <asp:ListItem Text="Muamalat" Value="17" />
                            <asp:ListItem Text="Bank Pertanian" Value="18" />
                            <asp:ListItem Text="Resolution Alliance" Value="19" />
                            <asp:ListItem Text="Other local" Value="20" />
                            <asp:ListItem Text="Other foreign" Value="21" />
                        </asp:DropDownList>
                    </td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>Land Area</td>
                    <td colspan="4">
                        <asp:TextBox ID="txtLandAreaMin" runat="server" Width="300px" />
                        to
                        <asp:TextBox ID="txtLandAreaMax" runat="server" Width="300" /></td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>Price</td>
                    <td colspan="4">
                        <asp:TextBox ID="txtPriceMin" runat="server" Width="300px" />
                        to
                        <asp:TextBox ID="txtPriceMax" runat="server" Width="300" /></td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>Auction Date</td>
                    <td colspan="4">
                        <asp:TextBox ID="txtAuctionDateMin" runat="server" Width="300px" /><asp:ImageButton runat="Server" ID="imgToDateCal" AlternateText="Click to show calendar" ImageUrl="~/images/style01/Btn-calendar.png" />
                        <cc1:CalendarExtender ID="ceToDate" runat="server" Format="dd-MMM-yyyy" TargetControlID="txtAuctionDateMin" PopupButtonID="imgToDateCal" />
                        to
                        <asp:TextBox ID="txtAuctionDateMax" runat="server" Width="300px" />
                        <asp:ImageButton runat="Server" ID="ImageButton1" AlternateText="Click to show calendar" ImageUrl="~/images/style01/Btn-calendar.png" />
                        <cc1:CalendarExtender ID="CalendarExtender1" runat="server" Format="dd-MMM-yyyy" TargetControlID="txtAuctionDateMax" PopupButtonID="ImageButton1" />
                        &nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>Reminder Date</td>
                    <td colspan="4">
                        <asp:TextBox ID="txtRemindDateMin" runat="server" Width="300px" />
                        <asp:ImageButton runat="Server" ID="ImageButton2" AlternateText="Click to show calendar" ImageUrl="~/images/style01/Btn-calendar.png" />
                        <cc1:CalendarExtender ID="CalendarExtender2" runat="server" Format="dd-MMM-yyyy" TargetControlID="txtRemindDateMin" PopupButtonID="ImageButton2" />
                        to 
        <asp:TextBox ID="txtRemindDateMax" runat="server" Width="300px" /><asp:ImageButton runat="Server" ID="ImageButton3" AlternateText="Click to show calendar" ImageUrl="~/images/style01/Btn-calendar.png" />
                        <cc1:CalendarExtender ID="CalendarExtender3" runat="server" Format="dd-MMM-yyyy" TargetControlID="txtRemindDateMax" PopupButtonID="ImageButton3" />
                        &nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>Status Delete</td>
                    <td>
                        <asp:DropDownList ID="ddlStatusDelete" runat="server" Width="300px">
                            <asp:ListItem Text="No" Value="0" Selected="True" />
                            <asp:ListItem Text="Yes" Value="1" />
                        </asp:DropDownList>

                    </td>
                    <td>&nbsp;</td>
                    <td></td>
                    <td></td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td colspan="5" align="right">
                        <div style="border-top: 1px solid #c2c2c2; height: 20px; padding-top: 10px;">
                            <asp:Button ID="btnSearch" runat="server" Text="Search" CssClass="search-btn" Width="80" />
                            <asp:Button ID="btnResetSearchFilter" runat="server" Text="Reset" CssClass="search-btn" Width="60" />
                        </div>
                    </td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
            </tbody>

        </table>

        <br />

        <!--Result Pane Here-->

    </asp:Panel>

    <table class="ResultPanelContainer" border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td>

                <table class="ResultPanelHeader" border="0" width="100%">
                    <tr>
                        <td style="width: 232px">
                            <asp:Label ID="lblHeadNoOfItem" runat="server" Text="0" />&nbsp;items total</td>
                        <td align="right">Number of entries per page :
                            <asp:LinkButton ID="lnkHead10Item" runat="server" Text="10" />&nbsp;<asp:LinkButton ID="lnkHead25Item" runat="server" Text="25" />&nbsp;<asp:LinkButton ID="lnkHead100Item" runat="server" Text="100" />&nbsp;<asp:LinkButton ID="lnkHead150Item" runat="server" Text="150" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>

                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="ResultPanelDataDisplay" id="PropertyList">
                    <thead>
                        <tr>
                            <th scope="col" id="first-col"><strong>
                                <asp:LinkButton ID="lnkUnitNo" runat="server" Text="Unit No▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                            <th scope="col"><strong>
                                <asp:LinkButton ID="lnkAddress" runat="server" Text="Address▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                            <th scope="col"><strong>
                                <asp:LinkButton ID="lnkPropertyType" runat="server" Text="Property Type▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                            <th scope="col"><strong>
                                <asp:LinkButton ID="lnkVenue" runat="server" Text="AuctionVenue▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                            <th scope="col"><strong>
                                <asp:LinkButton ID="lnkBank" runat="server" Text="Bank▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                            <th scope="col"><strong>
                                <asp:LinkButton ID="lnkLandArea" runat="server" Text="LandArea▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                            <th scope="col"><strong>
                                <asp:LinkButton ID="lnkPrice" runat="server" Text="Price▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                            <th scope="col"><strong>
                                <asp:LinkButton ID="lnkAuctionDate" runat="server" Text="Auction Date▼" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                            <th scope="col"><strong>
                                <asp:LinkButton ID="lnkRemindDate" runat="server" Text="Reminder Date▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                            <th scope="col"><strong>
                                <asp:LinkButton ID="lnkAgent" runat="server" Text="Agent▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                            <th scope="col"></th>
                        </tr>
                    </thead>
                    <tbody>
                        <asp:Repeater ID="repUpload" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <%--edited by minginn @13/4/11 to allow user view the property by clicking the row--%>
                                    <asp:Label ID="lblRepLelongId" runat="server" Text='<%#Container.dataitem("LelongId").tostring %>' Visible="false" />
                                    <asp:Label ID="lblRepLelongTipCode" runat="server" Text='<%#Container.DataItem("LelongTipCode").ToString%>' Visible="false" />
                                    <td id="first-col">
                                        <asp:LinkButton ID="lblRepUnitNo" runat="server" Text='<%#Container.DataItem("UnitNo").ToString%>' CommandArgument='<%#Container.DataItem("LelongId").ToString%>' CommandName="ViewList" /></td>
                                    <td>
                                        <asp:LinkButton ID="lblRepAddress" runat="server" Text='<%#Container.DataItem("Address").ToString%>' CommandArgument='<%#Container.DataItem("LelongId").ToString%>' CommandName="ViewList" /></td>
                                    <td>
                                        <asp:LinkButton ID="lblRepType" runat="server" Text='<%#Container.DataItem("Type").ToString%>' CommandArgument='<%#Container.DataItem("LelongId").ToString%>' CommandName="ViewList" /></td>
                                    <td>
                                        <asp:LinkButton ID="lblRepAuctionVenue" runat="server" Text='<%#Container.DataItem("AuctionVenue").ToString%>' CommandArgument='<%#Container.DataItem("AuctionVenue").ToString%>' CommandName="ViewList" /></td>
                                    <td>
                                        <asp:LinkButton ID="lblRepBank" runat="server" Text='<%#Container.DataItem("Bank").ToString%>' CommandArgument='<%#Container.DataItem("LelongId").ToString%>' CommandName="ViewList" /></td>
                                    <td>
                                        <asp:LinkButton ID="lblRepLandArea" runat="server" Text='<%#Container.DataItem("LandArea").ToString%>' CommandArgument='<%#Container.DataItem("LelongId").ToString%>' CommandName="ViewList" /></td>
                                    <td>
                                        <asp:LinkButton ID="lblRepPrice" runat="server" Text='<%#Container.DataItem("Price").ToString%>' CommandArgument='<%#Container.DataItem("LelongId").ToString%>' CommandName="ViewList" /></td>
                                    <td>
                                        <asp:LinkButton ID="lblRepAuctionDate" runat="server" Text='<%# Bind("AuctionDate","{0:dd-MMM-yyyy}") %>' CommandArgument='<%#Container.DataItem("LelongId").ToString%>' CommandName="ViewList" /></td>
                                    <td>
                                        <asp:LinkButton ID="lblRepRemindDate" runat="server" Text='<%# Bind("RemindDate", "{0:dd-MMM-yyyy}")%>' CommandArgument='<%#Container.DataItem("LelongId").ToString%>' CommandName="ViewList" /></td>
                                    <td>
                                        <asp:LinkButton ID="lblRepAgentID" runat="server" Text='<%#Container.DataItem("AgentID").ToString%>' CommandArgument='<%#Container.DataItem("LelongId").ToString%>' CommandName="ViewList" /></td>
                                    <td>
                                        <asp:ImageButton ID="imgRepDelete" runat="server" ImageUrl="~/images/style01/DeleteButton.png" Style="vertical-align: middle;" AlternateText="Delete" CommandName="DeleteItem" CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' />
                                        <cc1:ConfirmButtonExtender ID="cbe" runat="server" TargetControlID="imgRepDelete" ConfirmText="Are you sure you want to delete?" />
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </tbody>
                </table>

            </td>
        </tr>
        <tr>
            <td>
                <table class="ResultPanelFooter" width="100%">
                    <tr>
                        <td>
                            <asp:Label ID="lblFootNoOfItem" runat="server" Text="0" />&nbsp; items total</td>
                        <td align="center" valign="middle">
                            <asp:Panel ID="pnlNavigation" runat="server" Style="text-align: center; vertical-align: middle;">
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-first.png" ID="btnMoveFirst" runat="server" Width="28" Height="18" Style="vertical-align: middle;" />&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-back.png" ID="btnPrevious" runat="server" Width="28" Height="18" Style="vertical-align: middle;" />&nbsp;
                                <asp:TextBox ID="txtPageNo" runat="server" Text="1" Height="12" Width="28" Font-Size="10px" Style="text-align: center; vertical-align: middle;" onkeypress="return isNumberKeyOnly(event)" onpaste="return isNumberKeyOnly(event)" />&nbsp;
                                <asp:Label ID="lblTotalPage" runat="server" Height="20" Font-Size="10px" Style="vertical-align: middle;" />&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-go.png" ID="btnGo" runat="server" Width="28" Height="18" Style="vertical-align: middle;" />&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-foward.png" ID="btnNext" runat="server" Width="28" Height="18" Style="vertical-align: middle;" />&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-last.png" ID="btnMoveLast" runat="server" Width="28" Height="18" Style="vertical-align: middle;" />
                                <asp:Label ID="lblMaxPageCount" runat="server" Visible="false" Height="20" Font-Size="10px" Style="vertical-align: middle;" />
                            </asp:Panel>
                        </td>
                        <td align="right">Number of entries per page :
                            <asp:LinkButton ID="lnkFoot10Item" runat="server" Text="10" />&nbsp;<asp:LinkButton ID="lnkFoot25Item" runat="server" Text="25" />&nbsp;<asp:LinkButton ID="lnkFoot100Item" runat="server" Text="100" />&nbsp;<asp:LinkButton ID="lnkFoot150Item" runat="server" Text="150" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>

    <asp:Label ID="lblhidSortType" runat="server" Visible="false" Text=" ORDER BY AuctionDate DESC, RemindDate DESC,  Address ,UnitNo" />

</asp:Content>


